package com.song.cloud.nacos.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author ZhangGuisong
 * @Date 2021/2/27-14:11
 */
@RestController
public class nacosProviderController {
    @Value("${server.port}")
    private String serverPort;
    @GetMapping("/nacos/provider/getInfo")
    public String getInfo(){
        return "端口信息"+serverPort;
    }
}
